package com.techstar.ats.dxp.history.rep;

import java.util.LinkedList;
import java.util.List;

import com.techstar.ats.dxp.history.F23HistoryRecord;

public class F23HistorySchedule extends AbstractSchedule {
	private static final long serialVersionUID = 1L;
	public final List<F23HistoryRecord> records = new LinkedList<>();
	public String group;

	public boolean toCsvString(StringBuffer sb) {
		this.records.forEach((record) -> {
			sb.append(this.line)
				.append(',')
				.append(this.datetime.format(DATE_TIME_FORMATTER))
				.append(',')
				.append(this.group)
				.append(',');
			record.toCsvString(sb);
			sb.append(System.lineSeparator());
		});
		return false;
	}
}
